import { Sport } from '../sport/sport-model.js';

var sport = new Sport();
Page({
  data: {
    id:null
  },

  onLoad: function (options) {
    this._getSport();
    var id = options.id;
    this.data.id = id;
  },

  /*订单物流详情*/
  _getSport: function (callback) {
    var that = this;
    var id = 1;
    sport.getsportData(id,(res) => {
      that.setData({
       sportData:res.data,
      });
      callback && callback();
    });
  }
})